home *** CD-ROM | disk | FTP | other *** search
/ ShareWare OnLine 2 / ShareWare OnLine Volume 2 (CMS Software)(1993).iso / virus / vc50_jan.zip / RESCDISK.BAT < prev    next >
DOS Batch File  |  1993-01-24  |  3KB  |  96 lines

  1. ECHO OFF
  2. CLS
  3.  
  4. SET GET=
  5. GET !J
  6.  
  7. IF "%GET%"=="" GOTO NOGOTGET
  8. CLS
  9. ECHO  
  10. ECHO        Please ensure you have a bootable DOS diskette 
  11. ECHO        in the A: drive. It should NOT be write-protected
  12. ECHO        yet. When this disk is ready, hit Enter to proceed.
  13. ECHO  
  14. GET   [Q] to Quit now . . . 
  15. IF ERRORLEVEL 81 GOTO OOPSOUT
  16.  
  17. :PROCEED
  18. CLS
  19. ECHO  
  20. IF NOT EXIST A:\COMMAND.COM GOTO NOSYSTEM
  21. IF NOT EXIST VRESCUE GOTO NORESCUE
  22.  
  23.  
  24. ECHO    Making a new AUTOEXEC.BAT on the Rescue Diskette.
  25. ECHO    Please stand by.
  26. ECHO    This will take a moment . . . 
  27. GET !P
  28.  
  29. IF EXIST A:\AUTOEXEC.BAT ERASE A:\AUTOEXEC.BAT > NUL
  30. COPY VRESCUE A:\AUTOEXEC.BAT
  31.  
  32. ECHO   Autoexec.BAT made . . . 
  33.  
  34. IF EXIST \CONFIG.SYS COPY \CONFIG.SYS A:
  35. IF EXIST A:CONFIG.SYS ECHO    Config.SYS copied . . . 
  36.  
  37. ECHO VC5 RESCUE DISK > A:VC5.ID
  38.  
  39. IF EXIST A:VC5.ID ECHO    Your Rescue Diskette is complete
  40. echo  
  41. GOTO LASTEND
  42.  
  43. :FAILED
  44. ECHO  
  45. ECHO   The attempt to make a rescue diskette has failed.
  46. ECHO   Please initialize Victor Charlie again. The command is
  47. ECHO               VC NEW
  48. ECHO   Then return here to make your rescue diskette
  49. GOTO LASTEND     
  50.  
  51. :NOSYSTEM
  52. ECHO     The diskette in the A: drive is not a bootable DOS diskette.
  53. ECHO     Please format or re-format a diskette, using the command.
  54. ECHO                   " FORMAT A: /S "
  55. ECHO     The "/S" option is a vital part of the process 
  56. ECHO     of making a rescue disk.
  57. ECHO  
  58. GOTO LASTEND
  59.  
  60. :NORESCUE
  61. CLS
  62. ECHO     You are missing a vital file called VRESCUE. This text file
  63. ECHO     is made automatically during VINSTALLation of Victor Charlie.
  64. ECHO     I cannot make a helpful VC5 rescue diskette without this file.
  65. ECHO     Please re-install Victor Charlie, or see your VC5 manual for
  66. ECHO     instructions on how to make your own rescue diskette.
  67. ECHO     NOTE:--------------------------------------------------------
  68. ECHO     If you did not run VC5 from its own home directory, exit
  69. ECHO     VC5 now. Log on to the VC5 home directory and re-run.
  70. ECHO.
  71. ECHO     VRESCUE should be in the VC5 home directory.    
  72. GOTO LASTEND
  73.  
  74. :OOPSOUT
  75. CLS
  76. ECHO      You have halted the making of the Rescue Diskette.
  77. ECHO  
  78. GOTO LASTEND
  79.  
  80. :NOGOTGET
  81. CLS
  82. ECHO  
  83. ECHO    This routine requires the Victor Charlie utility
  84. ECHO                    GET.COM
  85. ECHO    Please copy this program from your VC installation
  86. ECHO    diskette to this directory, and start again.
  87. ECHO  
  88. PAUSE > NUL
  89. ECHO     
  90.  
  91. :LASTEND
  92. ECHO  
  93. ECHO     Please hit a key to return to the VC5 menu
  94. PAUSE > NUL
  95.  
  96.